package com.module.service

import android.content.Context
import com.alibaba.android.arouter.facade.annotation.Route
import com.module.app.arouter.path.MsgPath
import com.module.app.arouter.service.IMsgService
import com.module.msg.utils.startHot
import com.module.msg.utils.startMsg
import com.module.msg.view.MsgFragment

/**
 * @author bsnl_yanxuwen
 * @date 2021/1/20 10:53
 * Description :
 * 消息 通讯
 */
@Route(path = com.module.app.arouter.path.MsgPath.S_MSG_SERVICE)
class MsgServiceImpl : com.module.app.arouter.service.IMsgService {
    override fun init(context: Context) {}
    override fun getMsgFragment(): MsgFragment {
        return MsgFragment()
    }

    override fun startAddMsgActivity(context: Context?) {
        context.startMsg(null)
    }

    override fun startHotMsgActivity(context: Context?) {
        context.startHot()
    }
}